import request from '@/router/axios';

export const getList = (current,size,params) => {
  return request({
    url: '/api/vingsoft-ywsp/deptInterServ/deptInterServPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const addInter = (row) => {
  return request({
    url: '/api/vingsoft-ywsp/deptInterServ/submit',
    method: 'post',
    data: row
  })
}

export const selectItemId = (itemId) => {
  return request({
    url: '/api/vingsoft-ywsp/deptInterServ/selectitemId',
    method: 'post',
    params: {
      itemId
    }
  })
}
export const selectAreaName = (deptCode) => {
  return request({
    url: '/api/vingsoft-ywsp/deptInterServ/selectAreaName',
    method: 'post',
    params: {
      deptCode
    }
  })
}
export const selectId = () => {
  return request({
    url: '/api/vingsoft-ywsp/deptInterServ/selectId',
    method: 'get'
  })
}


export const selectupdate = (itemId) => {
  return request({
    url: '/api/vingsoft-ywsp/deptInterServ/selectupdate',
    method: 'post',
    params: {
      itemId
    }
  })
}
export const update = (row) => {
  return request({
    url: '/api/vingsoft-ywsp/deptInterServ/update',
    method: 'post',
    data: row
  })
}

export const updateDataStatus = (datastatus,id) => {
  return request({
    url: '/api/vingsoft-ywsp/deptInterServ/updateDataStatus',
    method: 'post',
    params: {
      datastatus,
      id
    }
  })
}

export const updateisDelete = (id) => {
  return request({
    url: '/api/vingsoft-ywsp/deptInterServ/updateisDelete',
    method: 'post',
    params: {
      id
    }
  })
}
